﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace MvvmTreeView
{
    public delegate void NodeLabelEditEventHandler(object sender, NodeLabelEditEventArgs e);

    public class NodeLabelEditEventArgs : EventArgs
    {
        private string label;
        private ITreeNode node;

        public bool CancelEdit { get; set; }
        public string Label 
        {
            get
            {
                return label;
            }
        }

        public ITreeNode Node
        {
            get
            {
                return node;
            }
        }

        public NodeLabelEditEventArgs(ITreeNode node)
        {
            this.node = node;
        }

        public NodeLabelEditEventArgs(ITreeNode node, string label)
        {
            this.node = node;
            this.label = label;
        }
    }
}
